<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC >
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>停车场用户--${headerTitle }</title>
	
  	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1";/><!-- IE的渲染模式 -->
    <meta name="keywords" content="信帧,teleframe,iparking,I停车,爱停车,blackshadowwalker" />
	<meta name="description" content="信帧,teleframe,iparking,I停车,爱停车,blackshadowwalker" />
	<meta name="author" content="blackshadowwalker" />
    
	<link href="css/common.css" rel="stylesheet"/>
	<link href="bootstrap/3.2/css/bootstrap.css" rel="stylesheet"/>

	<script src="scripts/jquery/jquery-1.7.min.js"></script>
	<script src="bootstrap/3.2/js/bootstrap.min.js"></script>
	
	<script src="index/js/index.js" type="text/javascript"></script>
	
	<style>
		body{
			margin-left: 10px;
			margin-top: 7px;
			font-size:10px;
			width:98%;
			height:650px;
		}
	</style>

</head>

<body>

	<div style="position:absolute;top:0px;left:10px;">
		<a href="javascript:history.go(-1);" class="btn ">返回</a>
	</div>
	
	<div class="container">
		<div class="panel panel-success" style="min-width:400px;max-width:600px;">
			<div class="panel-heading">
				<center> 个人信息 </center>
			</div>
			<div class="panel-body">
				<table class="table">
					<tr>
						<td rowspan="9" style="width:165px;">
							<img src="${userinfo.userPhoto}" alt="头像"  default="images/user/default.gif"   style="width:150px;height:180px;cursor:pointer;"/>
						</td>
						<td>真实姓名：</td>
						<td>${userinfo.realName}</td>
					</tr>
					<tr>
						<td>性别：</td>
						<td>
							<div gender="1" style="display:none;" >
								<img src="images/radio/man.jpg" alt="男" width="30" height="30" /> 
								<input	name="userinfo.gender" type="radio" value="1" checked="checked" />男
							</div>	
							<div gender="2" style="display:none;" >
								<img src="images/radio/male.jpg" alt="女" width="30" height="30" />
								<input name="userinfo.gender" type="radio" value="2" />女
								
								<script>
									$("input:radio[value=${userinfo.gender}]").attr("checked","true");
									var gender = "${userinfo.gender}";
									$("div[gender='"+gender+"']").show();
								</script>
							</div>
						</td>
					</tr>
					<tr>
						<td>手机号：</td>
						<td> ${userinfo.phone } </td>
					</tr>
					<tr>
						<td>常用车牌号：</td>
						<td> ${userinfo.carNo } </td>
					</tr>
					<tr>
						<td>电子邮箱：</td>
						<td> ${userinfo.email } </td>
					</tr>
					<tr>
						<td>账户余额：</td>
						<td> ${userinfo.accountBalance }元</td>
					</tr>
					<tr>
						<td>用户积分：</td>
						<td> ${userinfo.score }点</td>
					</tr>
					<tr>
						<td>信用度：</td>
						<td> ${userinfo.credit }点</td>
					</tr>
					<tr>
						<td>用户状态：</td>
						<td> ${userinfo.statusName }</td>
					</tr>
					<tr>
						<td colspan="3">
							个人简介:
							<p>
								${userinfo.introduction }
							</p>
						</td>
					</tr>
				</table>
			</div>
			<div class="panel-footer">&nbsp;</div>
		</div>
	</div>	

</body>
</html>
